package thread;

/**
 * @Author liangzai
 * @Description:
 */
public class Demo2 {
    public static void main(String[] args) throws InterruptedException {
        Thread t1 = new Thread(()->{
            try {
                Thread.sleep(10000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println("t1 结束了！");
        });
        t1.start();
        t1.join(6000);
        System.out.println("mian结束了！");
    }
}
